package com.xieyunjie;

import org.springframework.context.annotation.Configuration;

@Configuration
//@ConditionalOnJava(value = JavaVersion.EIGHT)
//@ConditionalOnBean(value ={User.class} )
//@ConditionalOnClass(value = {User.class})
//@ConditionalOnSingleCandidate(value = User.class)
public class UserConfig {

//    @Bean
//    @Primary
//    @Profile(value = "developer")
//    public User getUser1(){
//        return new User(1,"developer",new Date());
//    }
//    @Bean
//    @Profile(value = "product")
//    public User getUser2(){
//        return new User(2,"product",,new Date());
//    }

}
